package org.example.study6;

public class SingletonLazyTest {
    public static void main(String[] args) {
        // 第一次获取
        SingletonLazy instance1 = SingletonLazy.getInstance();
        System.out.println(instance1);
        // 第二次获取
        SingletonLazy instance2 = SingletonLazy.getInstance();
        System.out.println(instance2);
        // 第三次获取
        SingletonLazy instance3 = SingletonLazy.getInstance();
        System.out.println(instance3);
    }
}
/*运行如下：三个实例地址相同
org.example.study6.SingletonLazy@404b9385
org.example.study6.SingletonLazy@404b9385
org.example.study6.SingletonLazy@404b9385*/